package com.igoal.entity;

import java.util.Date;
import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Id;
import javax.persistence.Table;
import javax.persistence.Temporal;
import javax.persistence.TemporalType;

@Entity
@Table(name = "famous_quote")
public class FamousQuote implements java.io.Serializable {

	private static final long serialVersionUID = 7049744910051974869L;
	private int id;
	private String lang;
	private String quote;
	private String author;
	private Date cdate;
	private Date udate;

	public FamousQuote() {
	}

	public FamousQuote(int id) {
		this.id = id;
	}

	public FamousQuote(int id, String lang, String quote, String author,
			Date cdate, Date udate) {
		this.id = id;
		this.lang = lang;
		this.quote = quote;
		this.author = author;
		this.cdate = cdate;
		this.udate = udate;
	}

	@Id
	@Column(name = "id", unique = true, nullable = false)
	public int getId() {
		return this.id;
	}

	public void setId(int id) {
		this.id = id;
	}

	@Column(name = "lang", length = 2)
	public String getLang() {
		return this.lang;
	}

	public void setLang(String lang) {
		this.lang = lang;
	}

	@Column(name = "quote")
	public String getQuote() {
		return this.quote;
	}

	public void setQuote(String quote) {
		this.quote = quote;
	}

	@Column(name = "author")
	public String getAuthor() {
		return this.author;
	}

	public void setAuthor(String author) {
		this.author = author;
	}

	@Temporal(TemporalType.TIMESTAMP)
	@Column(name = "cdate", length = 19)
	public Date getCdate() {
		return this.cdate;
	}

	public void setCdate(Date cdate) {
		this.cdate = cdate;
	}

	@Temporal(TemporalType.TIMESTAMP)
	@Column(name = "udate", length = 19)
	public Date getUdate() {
		return this.udate;
	}

	public void setUdate(Date udate) {
		this.udate = udate;
	}

}
